import http from '../common/js/http'

// 获取历史奖品
export function userInfo(id) {
  let url = `info/${id}`

  return http.get(url).then(response => {
    return Promise.resolve(response)
  })
}

// 获取历史奖品
export function appendInfo(id, params) {
  let url = `info/append/${id}`

  return http.post(url, params).then(response => {
    return Promise.resolve(response)
  })
}
